package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_music_room_beauty_checkin", desc = "妙音坊美女入住日志", autoSave = true, uploadCk = true)
public class LogMusicRoomBeautyCheckIn extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "美女ID")
    private int beautyId;
    @FieldTypeAnnotation(desc = "入住前建筑")
    private int beforeBuildId;
    @FieldTypeAnnotation(desc = "入住后建筑")
    private int nowBuildId;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogMusicRoomBeautyCheckIn(long userId, int beautyId, int beforeBuildId, int nowBuildId) {
        this.userId = userId;
        this.beautyId = beautyId;
        this.beforeBuildId = beforeBuildId;
        this.nowBuildId = nowBuildId;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
